package com.lhj.queue;

import java.util.Date;

/**
 * @ClassName TaskAttribute
 * @Description 任务属性
 * @date 2017-03-20
 * @author hongjian.liu
 * @version 1.0.0
 *
 */
public class TaskAttribute {
	
	/** 第几个槽位 */
	private final int slotIndex;
	/** 任务应该什么时候执行 */
	private final Date executeTime;
	/** 任务加入槽位的时间 */
	private final Date joinTime;

	public TaskAttribute(int slotIndex, Date executeTime, Date joinTime) {
		this.slotIndex = slotIndex;
		this.executeTime = executeTime;
		this.joinTime = joinTime;
	}

	public int getSlotIndex() {
		return slotIndex;
	}

	public Date getExecuteTime() {
		return executeTime;
	}

	public Date getJoinTime() {
		return joinTime;
	}

}
